		 **************************************************************
		 **															 **
		 ** Paper: Freedom of Foreign Movement and Human Trafficking **
		 **														     **
		 ** Authors: Sam R. Bell & Richard W. Frank 				 **
		 **															 **
		 ** Date: May 12, 2021										 **
		 **															 **
		 ** Task: Table A8-Model 3 results with varying distances 	 **
		 **															 **
		 **************************************************************
		  
									 
			clear
			version 16.1
			set seed 1234

			** Change working directory
			cd "~"
			 
			use "ht_merged.dta"	
			merge 1:1 ccode year using "ht_eba_ivs.dta"		
			global IVs "gdp_ln pop_ln"
 
						
			 			***********************************	
						***  Model 3, various distances ***
						***********************************	
 						
			
 			* 3.12, V-DEM 12km

			probit F.source v2clfmove W_vfomov_con12  $IVs , robust cluster (ccode)
				 		
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M3_12	
				
				
 			* 3.24, V-DEM 24km

			probit F.source v2clfmove W_vfomov_con24  $IVs , robust cluster (ccode)
				 		
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M3_24					
				
				
 			* 3.150, V-DEM 150km

			probit F.source v2clfmove W_vfomov_con150  $IVs , robust cluster (ccode)
				 		
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M3_150					
				
				
 			* 3.400, V-DEM 400km

			probit F.source v2clfmove W_vfomov_con400  $IVs , robust cluster (ccode)
				 		
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M3_400					
				
			esttab M3_12 M3_24 M3_150 M3_400 using "model3_distances.csv", replace ///
			title(Model 3: various distances, probit results) ///
			obslast label se nogaps scalars(N pr2)  star(* 0.05 ** 0.01 *** 0.001)  
												
				
		
